package com.zfast.yugioh.antlr4.effect.impl;

import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CommonToken;
import org.antlr.v4.runtime.TokenSource;
import org.antlr.v4.runtime.misc.Pair;

/**
 * @author zgn
 * @Description: EffectToken
 * @date 2022/7/19 0019
 */
public class EffectToken extends CommonToken {
    public String srcName;

    public EffectToken(Pair<TokenSource, CharStream> source, int type, int channel, int start, int stop) {
        super(source, type, channel, start, stop);
    }

    public EffectToken(int type, String text) {
        super(type, text);
    }


    @Override
    public String toString() {
        return srcName+":"+super.toString();
    }
}
